import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "@/store/index";

import moment from "moment";
Vue.prototype.$moment = moment;

import ElementUi from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// import errorHandler from './utils/errorHandler';
import appTable from "./components/app-table.vue";
import myUpload from "./components/my-upload.vue";
import myTable from "./components/my-table.vue";
import myDialog from "./components/my-dialog.vue";
import VueRouter from "vue-router";
Vue.component("appTable", appTable);
Vue.component("myUpload", myUpload);
Vue.component("myTable", myTable);
Vue.component("myDialog", myDialog);
Vue.use(VueRouter);
import "echarts";
import ECharts from "vue-echarts";
Vue.component("v-chart", ECharts);

Vue.config.productionTip = false;
Vue.use(ElementUi);
// Vue.config.errorHandler = (err, vm, info) => {
//   // 在此处处理错误
//   console.log(err, vm, info);
//   return true;
// }
// import errorHandlerPlugin from './utils/errorHandler';

// Vue.use(errorHandlerPlugin);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
